﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Profile;
using System.Web.Security;

namespace OnlineMealOrdering.Common
{
    public class ProfileCommon:ProfileBase
    {
        public virtual string CName
        {
            get
            {
                return (string)this.GetPropertyValue("CName");
            }
            set 
            {
                this.SetPropertyValue("CName", value);
            }
        }

        public static ProfileCommon GetProfile(string userCode)
        {
            var profile = Create(userCode) as ProfileCommon;
            return profile;
        }
    
    }
}